(bug 18311) Purging images via the API now works. This is why we should use articleFr...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 3 Apr 2009 13:27:30 +0000 (13:27 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 3 Apr 2009 13:27:30 +0000 (13:27 +0000)
RELEASE-NOTES
includes/api/ApiPurge.php

index 437e3d9..e68fa9d 100644 (file)
@@ -370,6 +370,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   message to be included in the page text
 * Added uiprop=changeablegroups to meta=userinfo
 * Added usprop=gender to list=users
+* (bug 18311) action=purge now works for images too
 
 === Languages updated in 1.15 ===
 
index e2d0008..d68d1bf 100644 (file)
@@ -65,7 +65,7 @@ class ApiPurge extends ApiBase {
                                $result[] = $r;
                                continue;
                        }
-                       $article = new Article($title);
+                       $article = Mediawiki::articleFromTitle( $title );
                        $article->doPurge(); // Directly purge and skip the UI part of purge().
                        $r['purged'] = '';
                        $result[] = $r;